//使用vue-router插件实现模板路由的配置
import { createRouter, createWebHashHistory } from 'vue-router'
import { constantRoute } from './routes';

const router = createRouter({
    history: createWebHashHistory(),
    routes: constantRoute,
    scrollBehavior() {
        return {
            top: 0,
            left: 0,
        }
    }
})
export default router;
